package genetic;

public class RandomUtils {
	public static double between(double a, double b){
		double min = Math.min(a, b);
		double max = Math.max(a, b);
		return Math.random()*(max-min)+min;
	}
	
	public static int between(int a, int b){
		int min = Math.min(a, b);
		int max = Math.max(a, b);
		return (int) (Math.random()*(max-min)+min);
	}
}
